<template>
    <div class="pannle">
    <el-card class="box-card">
  <div slot="header" class="pannle-box">
    <span>{{title}}</span>
    <slot name="btn"></slot>
  </div>
 <slot></slot>
</el-card>
    </div>
</template>

<script>
    export default {
        data(){
            return{}
        },
        props:{
          title:{
            type:String,
            default:'标题'
          }
        }
    }
</script>

<style lang="less" scoped>
.pannle{
    margin-top: 2rem;
    width: 100%;
    height: 100%;
}
.pannle-box{
  display: flex;
  justify-content: space-between;
  span{
    line-height: 3rem;
  }
}
.text {
    font-size: 14px;
  }

  .item {
    margin-bottom: 18px;
  }

  .clearfix:before,
  .clearfix:after {
    display: table;
    content: "";
  }
  .clearfix:after {
    clear: both
  }

  .box-card {
    width: 480px;
  }
.el-card{
  margin: auto;
  width: 90%;
}
</style>